-- GENERATED SPELL FOR [Hearthglen Crusader] --


function spell0_29102(pUnit, Event) --@Arrow Assault,n/a--
pUnit:FullCastSpellOnTarget(53345,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29102', 500, 1)
end

function spell1_29102(pUnit, Event) --@Arrow Assault,n/a--
pUnit:FullCastSpellOnTarget(53348,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29102', 500, 1)
end

function Sorts_29102(pUnit, Event)
local choix_sorts_29102 = math.random(0, 1)
if choix_sorts_29102 == 0 then
pUnit:RegisterEvent('spell0_29102', 1, 1)
end
if choix_sorts_29102 == 1 then
pUnit:RegisterEvent('spell1_29102', 1, 1)
end
end

function mob29102_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29102', math.random(1500, 3000), 1)
end

function mob29102_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29102_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29102_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29102, 1, 'mob29102_Action')
RegisterUnitEvent(29102, 2, 'mob29102_Leave')
RegisterUnitEvent(29102, 3, 'mob29102_Kill')
RegisterUnitEvent(29102, 4, 'mob29102_Die')
